package apitest;

import org.junit.Test;

public class BooleanTest {
    private static final Boolean TRUE = new Boolean(true);

    @Test
    public void test01() {
        boolean b1 = false;
        boolean b2 = false;
        boolean b3 = true;
        boolean b4 = true;

        System.out.println(b1 == b2);
        System.out.println(b3 == b4);
        System.out.println("=============");

        Boolean b5 = new Boolean(true);
        Boolean b6 = new Boolean(true);
        System.out.println(b5 == b6);
        System.out.println(TRUE == TRUE);
        System.out.println("=============");

        Boolean i1 = false;
        Boolean i2 = false;
        Boolean i3 = true;
        Boolean i4 = true;
        System.out.println(i1==i2);
        System.out.println(i3==i4);

        Integer e = 1;
        Integer f = 321;
    }
}